<template>
  <!-- <div id="app" v-on:touchmove.prevent> -->
  <div id="app">
    <router-view style="height:100%"></router-view>
    
  </div>
</template>

<script>
import { 
  ownCartList,
} from "./api/pjmedicinecart";
export default {
  created () {
    //如果用户登录
    if(localStorage.userinfo){
        ownCartList().then(res=>{
        let {supplierList}=res.data;
        this.$store.commit("pjcart/initSupplierList",supplierList);
      })
    }
    
  },
};
</script>

<style lang="less" scoped>
</style>